package com.jby.autotest.common;

public class ArrayUtils {

    public Integer[] strArrayToIntArray(String[] a){
        Integer[] b = new Integer[a.length];
        for (int i = 0; i < a.length; i++) {
            b[i] = Integer.parseInt(a[i]);
        }

        return b;
    }

    public static void main(String[] args) {
        ArrayUtils arrayUtils = new ArrayUtils();
        String[] str = {"1","2","3"};
        Integer[] a = arrayUtils.strArrayToIntArray(str);
        System.out.println(a[0] + "," + a[1] + "," + a[2]);
    }
}
